package com.example.myapplication.bean;

// 和食物类一样的操作，定义一个用户类
public class User {
    // 用户名
    private String name;
    // 用户密码
    private String number;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getNumber_fin() {
        return number_fin;
    }

    public void setNumber_fin(String number_fin) {
        this.number_fin = number_fin;
    }

    private String number_fin;

    // 重写toString()方法，将用户的数据转化成JSON格式
    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", number='" + number + '\'' +
                ", number_fin='" + number_fin + '\'' +
                '}';
    }
}
